Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Aug 7, 2025

This was added back in #22802 but seems redundant since the check just below for the indexedDB global should be enough to handle the node case.

Split out from #24883

@sbc100 sbc100 requested a review from kripken August 7, 2025 23:59
This was added back in emscripten-core#22802 but seems redundant since the check
just below for the indexedDB global should be enough to handle the
node case.

Split out from emscripten-core#24883
function openDatabase(callback, errback) {
if (typeof indexedDB == 'undefined') {
throw 'using IndexedDB to cache data can only be done on a web page or in a web worker';
return errback('using IndexedDB to cache data can only be done on a web page or in a web worker');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have test coverage for this since without this part of the change the other.test_file_packager_separate_metadata fails under node

@sbc100 sbc100 merged commit 14dd929 into emscripten-core:main Aug 8, 2025
12 of 14 checks passed
@sbc100 sbc100 deleted the isNode branch August 8, 2025 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants